public class Test01 {
    public static void main(String[]args){
        int i,h,k;
        k=0;
        double s,sum;
        sum=0;
        for(i=2,h=1;k<=19;k++){
            s=i/h;
            sum+=s;
        }
        System.out.println("该数列前二十项的和为"+sum);
    }
}
